home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-05.Z / 94-05 / text0132.txt < prev    next >
Encoding:
Text File  |  1994-05-31  |  6.7 KB  |  168 lines

  1. In article <2qleoh$1su@burrito.abq.bdm.com>, etate@mcl.bdm.com (C. Emory Tate) writes:
  2. > I've been using WinVN for a while now, and I can't figure out how or
  3. > whether its authors implemented: (a) a killfile, (b) suppression of
  4. > already-read articles (not just changing their color - I wanna see
  5. > those numbers decline), or (c) enabling sig file usage across sessions
  6. > without having to reenable it each time (even poking the sig file info
  7. > into winvn.ini does no good)...
  8. > Anyone out there have answers to any or all of these puzzles?
  9.  
  10.    You should direct any questions about WinVN to the mailing list 
  11.    "winvn@titan.ksc.nasa.gov" or in the newsgroup NEWS.SOFTWARE.READERS.
  12.  
  13.    To answer your questions:
  14.  
  15.         a) WinVN doesn't currently implement a kill file.
  16.  
  17.         b) WinVN Version .90-6 allows you to fetch all the articles from
  18.            a group starting at the 1st message of the oldest unread
  19.            block of messages.  Click "Unread" from the fetch dialog box
  20.            after clicking on the newsgroup.  To get the maximum use of this
  21.            option, you should use the Double-Click Right mouse button 
  22.            sometime before exiting each session to identify all articles 
  23.            older than the current as "read".
  24.  
  25.         c) Saving the SIG file does work but this was a bug in an
  26.            older release.  Perhaps you should upgrade to the latest
  27.            version.
  28.  
  29.    WinVN is a public domain MS-Windows 3.1 or Windows NT Network News
  30.    reader.  It was written by Mark Riordan of MSU in 1989 and has been
  31.    extensively been modified by Sam Rushing from NASA/KSC (and a number
  32.    of other volunteers from around the world).  
  33.  
  34.    The latest version of WinVN is .90-6 and is available from 
  35.    FTP.KSC.NASA.GOV in the directory /pub/win3/winvn
  36.  
  37.       winvnsrc090_6.zip    Unified source code for WinVN Win3.1 and NT
  38.       winvnstd090_6.zip    WinSock v1.1 executable for Win 3.1
  39.       winvnpwk090_6.zip    Older pre WinSock 1.0 executables 
  40.       winvngen090_6.zip    Not-yet supported experimental DLL based WinSock
  41. -- 
  42. --------------------------------------------------------------------------
  43.    Jim Dumoulin                      INTERNET: DUMOULIN@TITAN.KSC.NASA.GOV
  44.    NASA / Payload Operations      SPAN/HEPnet: KSCP00::DUMOULIN
  45.    Kennedy Space Center
  46.    Florida, USA  32899               "America needs SPACE to grow"
  47.   
  48.  
  49. From news@bigblue.oit.unc.edu Fri May  9 21:13:45 1994
  50. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  51.           id AA28631; Tue, 10 May 1994 15:44:56 -0400
  52. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  53.           id AA10355; Tue, 10 May 1994 15:27:14 -0400
  54. Received: from GATEWAY by bigblue with netnews
  55.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  56. To: winsock@sunsite.unc.edu
  57. Date: 10 May 1994 04:13:45 -0700
  58. From: craign@teleport.com (Craig R. Nelson)
  59. Message-Id: <2qnq99$t6o@linda.teleport.com>
  60. Organization: Teleport - Portland's Public Access (503) 220-1016
  61. Sender: ses
  62. Subject: Closing/Killing a socket
  63.  
  64.  
  65. Hi there!
  66.  
  67. I know. Hard to believe. An actual windows sockets programming question. 
  68. My question is this. 
  69.  
  70. I am running Chameleon 4.004. I'm in the process of doing an nntp news 
  71. client-reader. One of the nntp commands is LIST\r\n and, as you might 
  72. expect, it fetches the whole list of newsgroups available from your 
  73. server. I would ike a gracefull way of killing this reception of the list 
  74. in midstream.
  75.  
  76. This is entirely being done with non-blocking asynchronous socket calls. 
  77. Using BC++ 4.0 and multiple inheritance response tables makes that part a 
  78. piece of cake. This is essentiall how it is working. Keep in mind that 
  79. this *is* C++ and therefore might look a litle strange. Let is suffice to 
  80. say that Manager is a class that receives socket notifications, and sock 
  81. is a socket object with all the underlying socket calls implemented within:
  82.  
  83. Manager::NotifyConnect()
  84. {
  85.   sock.AsyncSelect( FD_READ | FD_CLOSE );
  86.   sock.send( "LIST\r\n" );
  87. };
  88.  
  89.  
  90. Manager::NotifyRead()
  91. {
  92.   int nChars = sock.recv( recvBuffer, sizeof(recvBuffer)-1 );
  93.   recvBuffer[ nChars ] = 0;
  94.   ..process received characters..
  95. };
  96.  
  97. The trick part is in the CmCancel, a callback that responds to the 
  98. cancel=button of the loadList dialog. It is the only control (and the 
  99. only way) to close the dialog. I have tried various ways to kill the 
  100. socket from the TCP stack, the most horrid of which is:
  101.  
  102. void Manager::CmCancel()
  103. {
  104.   sock.AsyncSelect( 0 );
  105.   sock.shutdown( 2 );
  106.   sock.close();
  107.  
  108.   TDialog::CmCancel();
  109. }
  110.  
  111. But every time I do this the socket always ends up with a FIN ACKed state 
  112. and hangs around even though the close was successfull (so closesocket() 
  113. tells me).
  114.  
  115. Is there something I am missing on closing down a socket (possibly 
  116. rudely) that is recv'ing hordes of data? Should I be doing something with 
  117. ioctlsocket()? 
  118.  
  119. If the list is run to completion (which takes up to a minute over a 14kb 
  120. line) and then the dialog (and socket) are closed all is well and the 
  121. socket goes into quiet mode followed by falling out of the stack. I guess 
  122. what I'm asking is how can I tell the news server to quit sending data 
  123. since I don't want it anymore? Or is this even needed?
  124.  
  125. Thanks for all the help. Imagine that. An actual programming question in 
  126. the alt.winsock forum ... :-)
  127.  
  128. -- Craig
  129.  
  130. -- 
  131. []----------------------------------------------------[]
  132. | Craig Nelson   "I've upped my standards. Up Yours."  |
  133. | craign@teleport.com   as vague a .signature can get. |
  134. []----------------------------------------------------[]
  135. From news@bigblue.oit.unc.edu Tue May 10 11:36:00 1994
  136. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  137.           id AA04152; Tue, 10 May 1994 16:14:56 -0400
  138. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  139.           id AA16802; Tue, 10 May 1994 15:54:48 -0400
  140. Received: from GATEWAY by bigblue with netnews
  141.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  142. To: winsock@sunsite.unc.edu
  143. Date: Tue, 10 May 1994 11:36:00 GMT
  144. From: WhiskerP@lgwct.logica.com (Peter Whisker)
  145. Message-Id: <WhiskerP.257.2DCF719E@lgwct.logica.com>
  146. Organization: Logica DCG Ltd.
  147. Sender: ses
  148. Subject: NDIS Slip or PPP driver ?????
  149.  
  150. Anybody know of an NDIS (2 or 3) compliant SLIP or PPP driver.
  151.  
  152. It would be nice to be able to connect WFW 3.11 to a dial-in SLIP or PPP port 
  153. and be able to see the whole network.
  154.  
  155. The RAS (NETBeui) which comes with WFW is not what I would want to use.
  156.  
  157. Thanks
  158. Peter
  159. ~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  160. Peter Whisker      | Internet: WhiskerP@lgwct.logica.com
  161. Logica DCG Ltd,    | X400 : WhiskerP/O=LG/OU=LGWCT/P=LOGICA/A=TMAILUK/C=GB
  162. Cobham, Surrey     | "Opinions are mine, not Logica's"
  163. Great Britain      | "B'shin tuairim phearsanta, nach leargas Logica"
  164. ~~~~~~~~~~~~~~~~~~~'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  165.  
  166.  
  167.